import java.util.Arrays;
import java.util.Scanner;

public class Test {

//    public int countSegments(String s) {
//
//
//    }
    public static void main(String[] args) {



        /*
        * split()切割函数
        * regex以什么条件位置切割
        * limit以数组就是切割几组的意思
        * */
        String str="Hello, my name is John";

        String[] str1=str.split(" ");

        for ( String x: str1) {
            System.out.println(x);

        }
        String[] str2=str.split(" ",3);
        for (String x: str2) {
            System.out.println(x);
        }
    }

    public String toLowerCase(String s) {
        char[] ch=new char[s.length()];
        char ch1='a'-'A';
        for(int i=0;i<s.length();i++){


            if(s.charAt(i)>='A'&&s.charAt(i)<='Z'){
                ch[i]= (char) (s.charAt(i)+32);


            }else{
                ch[i]=s.charAt(i);
            }
        }
        String s1=new String(ch);
        return s1;
    }


    public static void main1(String[] args) {
        Test test=new Test();

        Scanner scanner=new Scanner(System.in);
        String s=scanner.nextLine();
        System.out.println(test.toLowerCase(s));
    }
}
